package com.aaa.os;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * fileName:OrderAApp
 * description:
 * author: Mr.Ge
 * createTime:2020/11/18 9:04
 * version:1.0.0
 */
@SpringBootApplication
@MapperScan("com.aaa.os.dao")  //mybatis扫描dao
@EnableTransactionManagement //开启事务管理
@EnableDiscoveryClient  //开启客户端发现功能，用来向注册中心注册，
                        // 通用注解，在任何注册中心都可以使用该注解
//@EnableEurekaClient    //开启eureka客户端功能，只能向eureka注册中心注册
public class OrderBApp {
    public static void main(String[] args) {
        SpringApplication.run(OrderBApp.class,args);
    }
}
